<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    //System.out.println("basepath:"+basepath);
%>
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basepath %>" />
    <title>强杰银行后台登录系统</title>
    <link href="css/backstage.css" rel="stylesheet" type="text/css" media="all" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- -->
    <script>var __links = document.querySelectorAll('a');function __linkClick(e) { parent.window.postMessage(this.href, '*');} ;for (var i = 0, l = __links.length; i < l; i++) {if ( __links[i].getAttribute('data-t') == '_blank' ) { __links[i].addEventListener('click', __linkClick, false);}}</script>
    <script src="js/jquery-3.1.1.js"></script>
    <script type="text/javascript">
        /*$(document).ready(function(c) {
        $('.alert-close').on('click', function(c){
            $('.message').fadeOut('slow', function(c){
                $('.message').remove();
            });
        });
    });*/
    $(document).ready(function () {
        var admin = $("input[name='adminname']").val();
    });
    function sub() {
        var name = $("[name='adminname']").val();
        if(name == ""){
            alert("用户名不能为空!");
            return;
        }
        var pwd = $("[name='adminpwd']").val();
        if(pwd == ""){
            alert("密码不能为空!");
            return;
        }
        backstageform.submit();
    }

    </script>
</head>
<body>

<!-- contact-form -->
<div class="message warning">
    <div class="inset">
        <div class="login-head">
            <h1>后台登录系统</h1>
            <!-- <div class="alert-close"> </div> -->
        </div>
        <form name="backstageform" action="/auc/admin_login" method="post">
            <li>
                <input type="text" name="adminname" class="text"><span class=" icon user"></span>
            </li>
            <div class="clear"> </div>
            <li>
                <input type="password" name="adminpwd"> <span class="icon lock"></span>
            </li>
            <div class="clear"> </div>
            <div class="submit">
                <input type="button" onclick="sub()" value="登录" >
                <div class="clear">  </div>
            </div>

        </form>
    </div>
</div>
</div>
<div class="clear"> </div>
<!--- footer --->
<%--<div class="footer">
    <p>Copyright &copy; 2014.</p>
</div>--%>

</body>
</html>

